with open('test.txt', encoding='utf-8', mode='r') as f:  # 自动关闭f 不需要f.close
    print(f.read())
